std::vector::shrink_to_fit
From Cppreference
| void shrink_to_fit();
| (C++0x) | |
Requests the removal of unused capacity.
It is a non-binding request to reduce capacity to size. It depends on the implementation if the request is fulfilled.
Contents |
Parameters
(none)
Return value
(none)
Complexity
constant
See also
| returns the number of elements (public member function) | |